package com.quan.cms.rpc.api;

import java.util.List;

import com.quan.base.common.base.service.support.IService;
import com.quan.cms.rpc.model.CmsChannel;

public interface CmsChannelService extends IService<CmsChannel, Integer> {

	/**
	 * 查询所有根节点
	 * @return
	 */
	public List<CmsChannel> selectRoot() ;

	/**
	 * 根据父ID查询子节点
	 * @param pid
	 * @return
	 */
	public List<CmsChannel> selectChildren(Integer pid) ;
	
	/**
	 * 递归节点
	 * @return
	 */
	public List<CmsChannel> tree(CmsChannel entity) ;

	/**
	 * 获取节点的所有父节点
	 * @param id
	 * @return
	 */
	public List<Integer> getParents(Integer id);
	
}
